package com.gitee.wsl.markdown.html.tag
/*

import io.noties.markwon.base.MarkwonConfiguration
import io.noties.markwon.base.MarkwonVisitor
import io.noties.markwon.base.RenderProps
import io.noties.markwon.base.SpannableBuilder
import io.noties.markwon.base.html.HtmlTag
import io.noties.markwon.base.html.MarkwonHtmlRenderer
import io.noties.markwon.base.html.TagHandler


abstract class SimpleTagHandler : TagHandler() {

    abstract fun getSpans(
        configuration: MarkwonConfiguration,
        renderProps: RenderProps,
        tag: HtmlTag
    ): Any?

    abstract override fun supportedTags(): List<String>

    override fun handle(visitor: MarkwonVisitor, renderer: MarkwonHtmlRenderer, tag: HtmlTag) {
        // @since 4.5.0 check if tag is block one and visit children
        if (tag.isBlock) {
            visitChildren(visitor, renderer, tag.asBlock)
        }

         getSpans(visitor.configuration(), visitor.renderProps(), tag)?.let {
            SpannableBuilder.setSpans(visitor.builder(), it, tag.start(), tag.end())
        }

    }
}*/
